package com.example.behaviorpattern.mediator.impl;

import com.example.behaviorpattern.mediator.Colleague;
import com.example.behaviorpattern.mediator.Mediator;

/**
 * 具体同事类 A
 * @author yaojianfeng
 */
public class ConcreteColleagueA extends Colleague {
    public ConcreteColleagueA(Mediator mediator) {
        super(mediator);
    }

    @Override
    public void receive(String message) {
        System.out.println("Colleague1 received message: " + message);
    }
}